package com.fbn;

import java.util.Set;
import javax.persistence.ManyToMany;
import javax.validation.constraints.NotNull;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity
public class Itinerary {
	
	@NotNull
	int id;

    @ManyToMany
    Set<Segment> segments;

    private double price;
}
